package pl.medec.formmanager.validators 
{
	import pl.medec.formmanager.FormManager;

	/**
	 * @author Piotr Mederak
	 */
	public class StringValidator implements IValidator 
	{
		public function validate(inputString:String, formula:String = null):Boolean 
		{
			var result:Boolean = false;
			
			////trace('StringValidator#validate ' + inputString);
			if(FormManager.trim( inputString ).length > 0) 
			{
				result = true;
			}
			else 
			{
				result = false;
			}
			
			return result;
		}

		public function get details():Object 
		{
			// TODO: Auto-generated method stub
			return null;
		}
	}
}
